
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
// import myAxios from './axios'
import axios from 'axios'
// import './mock/mock.js'
import elementIcon from './plugins'
import * as echarts from 'echarts'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
const app = createApp(App)
app.use(ElementPlus, {
    locale: zhCn,
  })
 app.config.globalProperties.$axios = axios
app.config.globalProperties.$echarts = echarts //将echarts作为全局变量加入Vue
 axios.defaults.baseURL="http://localhost:9000"
app.use(router)
app.use(ElementPlus)
app.mount('#app')
app.use(elementIcon)
